<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">


<h:body bgcolor="white">
	<h1>Registration</h1>
	<f:view>
		<h:form>
			<h:panelGrid columns="3">
				<h:outputLabel value="Title " for="title" />
				<h:selectOneMenu id="title" label="Title"
					value="#{registrationBean.title}">
					<f:selectItem itemLabel="" itemValue="" />
					<f:selectItem itemLabel="DI(FH)" itemValue="DIFH" />
					<f:selectItem itemLabel="Mag.(FH)" itemValue="MAGFH" />
					<f:selectItem itemLabel="DI" itemValue="DI" />
					<f:selectItem itemLabel="Mag." itemValue="MAG" />
					<f:selectItem itemLabel="Dr." itemValue="DR" />
				</h:selectOneMenu>
			<h:message for="title" />
			
			<h:outputLabel value="First Name:" for="firstName" />
			<h:inputText id="firstName" label="First Name" required="true"
				value="#{registrationBean.firstName}" />
			<h:message for="firstName" />
			
			<h:outputLabel value="Last Name:" for="lastName" />
			<h:inputText id="lastName" label="Last Name" required="true"
				value="#{registrationBean.lastName}" />
			<h:message for="lastName" />
			
			<h:outputLabel for="age" value="Age:" />
			<h:inputText id="age" label="Age" size="2"
				value="#{registrationBean.age}" />
			<h:message for="age" />
			
			<h:outputLabel value="Email Address:" for="email" />
			<h:inputText id="email" label="Email Address" required="true"
				value="#{registrationBean.email}">
			</h:inputText>
			
			<h:message for="email" />
			</h:panelGrid>
			
			<h:commandButton id="register" value="Register" action="#{registrationBean.confirmation}"  />
			
		</h:form>
	</f:view>
</h:body>
</html>
